<?php

namespace app\thirdPay\controller;
use app\common\controller\DBase;
use app\common\controller\PCBase;
use app\common\library\Upload;
use app\order\logic\OrderWhLogic;
use app\thirdPay\logic\LianLianPayServiceLogic;
use app\thirdPay\logic\LianlianLogic;

class LianLianPay extends PCBase
{

    /**
     * @desc     获取连连pay回款
     */
    public function GetPaymentsLianLianPay(){
        $data   = $this->request->get();
        return    (new LianLianPayServiceLogic())->GetPaymentsLianLianPay($data);
    }


    /**
     * @desc 导入连连支付数据
     * @date 2024-06-05
     * @author  luckyXiong
     */
    public function importInfo(){
        $file   = $this->request->file('file');
        $tel    = $this->getAdminTel();
        $data['file'] = $file;
        $data['tel'] = $tel;
        (new LianlianLogic())->uploadInfo($data);
        return  $this->jsonMessage(200,true,'导入成功',null);
    }



    /**
     * @desc 导入连连支付数据
     * @date 2024-06-05
     * @author  luckyXiong
     */
    public function index(){
        $params = $this->request->post();
        $res    = (new LianlianLogic())->pay_list($params);
        return $this->jsonMessage(200,'true','获取成功',$res);
    }






}